package com.dnjn.happiness.emo.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum EmoLogEnum {


    APPRAISE("APPRAISE", "评价"),
    SURVEY("SURVEY", "问卷"),
    TRAINING("TRAINING", "培训"),
    ADVICE("ADVICE", "建议"),
    AI("AI", "打卡"),
    COMM("COMM", "沟通"),
    ATTENDANCE("ATTENDANCE", "考勤");


    @Getter
    private String  rtype;
    @Getter
    private String  typeCn;


    public static String  getTypeCn(String rtype) {
        EmoLogEnum[] values = EmoLogEnum.values();
        for (EmoLogEnum logEnum : values) {
            if (rtype.equals(logEnum.rtype)) {

                return logEnum.typeCn;
            }
        }
        return null;

    }
}